﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JiaBao.Core.Data;
using JiaBao.Core.Infrastructure;

namespace JiaBao.Services.ServerState
{
    public class ServerState : IServerState
    {
        public bool IsReady()
        {
            DataSettings Setting = EngineContext.Current.Resolve<DataSettings>();

            if (!Setting.IsValid())
                return false;

            return SqlHelper.Test();


        }
    }
}
